package com.jxw.launcher.util;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.IntentFilter;

/* loaded from: classes.dex */
public class ReceiverUtil {
    public static final String ACTION_CONNECTIVITY_ACTION = "android.net.conn.CONNECTIVITY_CHANGE";
    public static final String ACTION_PLAYER_MP3STATUS = "ACTION_MUSIC_STATUS";
    public static final String ACTION_PLAYER_THIRD_PARTY = "ACTION_MUSIC_THIRD_PARTY";
    public static final String ACTION_READTEXT_POSITION = "ACTION_READTEXT_POSITION";

    public static void register(Context context, BroadcastReceiver broadcastReceiver, String... strArr) {
        IntentFilter intentFilter = new IntentFilter();
        for (String str : strArr) {
            intentFilter.addAction(str);
        }
        context.registerReceiver(broadcastReceiver, intentFilter);
    }

    public static void unRegister(Context context, BroadcastReceiver broadcastReceiver) {
        context.unregisterReceiver(broadcastReceiver);
    }
}
